function createPage(page, pagesize, pageInfo, total) {
    // 生成分页标签
    let pages = total / pagesize + (total % pagesize > 0?1:0);
    pageInfo.innerHTML = "";
    for(let i=1; i<=pages; i++){
        let b = document.createElement("b");
        if(i == page){  // 当前页
            b.className = "page-item page-active";
        }else{
             b.className = "page-item"
        }
        b.innerText = i;
        b.onclick = function() {
            page=i;
            loaddata();
            tbody.innerHTML = "";
            
        }
        
        pageInfo.append(b);
    }
  }